﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Model
{

    public class From
    {
        /// <summary>
        /// 
        /// </summary>
        public string role { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string uid { get; set; }
    }

    public class To
    {
        /// <summary>
        /// 
        /// </summary>
        public string role { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string uid { get; set; }
    }

    public class Message
    {
        /// <summary>
        /// 
        /// </summary>
        public From from { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public To to { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int type { get; set; }
    }

    public class PddChatMsg
    {
        /// <summary>
        /// 
        /// </summary>
        public string cmd { get; set; } = "send_message";
        /// <summary>
        /// 
        /// </summary>
        public Message message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int version { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string refer_page_name { get; set; } = "mall";
        /// <summary>
        /// 
        /// </summary>
        public string login_app_id { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string anti_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string user_agent { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public int request_id { get; set; }
    }
}
